using Unity.Netcode;
using UnityEngine;

/// <summary>
/// 网络启动管理器
/// </summary>
public class StartNetworkManager : MonoBehaviour
{
    /// <summary>
    /// 启动服务器
    /// </summary>
    public void StartServer()
    {
        NetworkManager.Singleton.StartServer();
    }

    /// <summary>
    /// 启动主机
    /// </summary>
    public void StartHost()
    {
        NetworkManager.Singleton.StartHost();
    }

    /// <summary>
    /// 启动客户端
    /// </summary>
    public void StartClient()
    {
        NetworkManager.Singleton.StartClient();
    }
}
